stylecontext: Use correct parent style for lookups
authorBenjamin Otte <otte@redhat.com>
Sun, 21 Dec 2014 20:30:51 +0000 (21:30 +0100)
committerBenjamin Otte <otte@redhat.com>
Wed, 7 Jan 2015 13:26:48 +0000 (14:26 +0100)
commitad199e4cf96592fb57d0a58861270d82b0a453d3
tree66a854b0610b896ca06629520c819a6b7b4062cb
parent26f36ef8aefb81c3d87f4c577a248efd77733e2d
stylecontext: Use correct parent style for lookups

After 3a337156d11a86c7a88f1f30a09276fdf6f63008 style lookups still used
the parent context's style as the parent style, even though after a
gtk_style_context_save() the root style of the style context is the
proper parent.

Testcase attached.
gtk/gtkstylecontext.c
testsuite/reftests/Makefile.am
testsuite/reftests/style-context-save-inheritance.css [new file with mode: 0644]
testsuite/reftests/style-context-save-inheritance.ref.ui [new file with mode: 0644]
testsuite/reftests/style-context-save-inheritance.ui [new file with mode: 0644]